package com.xmut.xmutbackend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xmut.xmutbackend.entity.OperationLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 邓仲良
 * @since 2025-06-18
 */
@Mapper
public interface OperationLogMapper extends BaseMapper<OperationLog> {
    
    /**
     * 分页查询操作日志
     * @param page 分页对象
     * @param name 用户名（可选）
     * @return 操作日志列表
     */
    List<OperationLog> operationLogPage(Page<OperationLog> page, @Param("name") String name);
}
